package utils;

import ctf.network.ProtocolError;
/**
 * An interface class to encode and decode commands
 * @author N. Bhatia, A.Butt, N, Evans, C. Levesque, P. OKeefe
 *
 */
public interface IDataPackage {
	/**
	 * Decode positions of elements from the incoming string according to the STEAL specifications
	 * @param encodedData the incoming data string
	 * @throws ProtocolError
	 */
	public void decode(String encodedData) throws ProtocolError;
	
	/**
	 * Encode the position of the elements in the model to a string according to the STEAL specifications
	 * @return outgoing string
	 */
	public String encode();
}
